import CommonUtils from "../utils/CommonUtils.js";

const allEnumDef = {
    "id": null,
    "enumValue": null,
    "enumName": null,
    "enumDesc": null,
    "enumType": 1,
    "enableFlag": 1,
    "orderNo": null,
    "createTime": null,
    "creator": null,
    "updateTime": null,
    "updater": null,
    "children": [{
        "id": null,
        "enumValue": null,
        "enumName": null,
        "enumDesc": null,
        "enumType": null,
        "enableFlag": 1,
        "orderNo": null,
        "createTime": null,
        "creator": null,
        "updateTime": null,
        "updater": null,
        "children": []
    }]
}

const defUser = {
    name: "用户名称",
    avatar: "http://mywiki.website/public/lcl/img/me.jpg",
    loginDateTime: new Date("2022-01-01 01:01:01")
}

function getOneEnumClass() {
    return CommonUtils.cloneObj(allEnumDef)
}

export default {
    getOneEnumClass, defUser
}